package com.jakewharton.rxbinding4.component;

import static com.jakewharton.rxbinding4.internal.Preconditions.checkNotNull;

import io.reactivex.rxjava3.annotations.CheckReturnValue;
import io.reactivex.rxjava3.annotations.NonNull;
import io.reactivex.rxjava3.core.Observable;
import ohos.agp.components.Picker;

public final class RxPicker {
    @CheckReturnValue
    @NonNull
    public static Observable<PickerValueChangedEvent> valueChanged(@NonNull Picker view) {
        checkNotNull(view, "view == null");
        return new PickerValueChangedObservable(view);
    }

    @CheckReturnValue
    @NonNull
    public static Observable<PickerScrollStateUpdatedEvent> pageSlideStateChanges(@NonNull Picker view) {
        checkNotNull(view, "view == null");
        return new PickerScrollStateUpdatedObservable(view);
    }

    private RxPicker() {
        throw new AssertionError("No instances.");
    }
}
